package com.jiyun.h2303b.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jiyun.h2303b.dao.UserMapper;
import com.jiyun.h2303b.pojo.TbUser;
import com.jiyun.h2303b.service.UserService;

import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, TbUser> implements UserService {
    @Override
    public void change(int uid, String vip) {
      TbUser tbUser =   this.baseMapper.selectById(uid);
      tbUser.setVip(vip);
      this.baseMapper.updateById(tbUser);
    }
}
